package cn.tedu.mapper;

import cn.tedu.pojo.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentMapper extends BaseMapper<Student> {
    @Select("select count(1) from student")
    long findTotal();

    List<Student> findStudentByPage(@Param("start") int start,
                                    @Param("size") int size,
                                    @Param("query") String query);
    @Select("select count(1) from xueji")
    long findTotal1();

    List<Student> findXuejiByPage(@Param("start") int start,
                                  @Param("size") int size,
                                  @Param("query") String query);
}
